﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Summary.aspx.cs" Inherits="CheckOverTime_Summary" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <div>
            <br />
            <table align="center" style="width: 522px">
                <tr>
                    <td style="width: 199px">
                        开始时间：<asp:TextBox ID="txtStartTime" runat="server" Width="151px"></asp:TextBox></td>
                    <td colspan="2">
                        结束时间：<asp:TextBox ID="txtEndTime" runat="server" Width="130px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 199px">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                            ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                    <td colspan="2" style="color: #000000">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                            ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td rowspan="3" style="width: 199px">
                        <asp:RadioButtonList ID="RadioButtonList1" runat="server" Height="77px" Width="163px">
                            <asp:ListItem Value="0">只显示全部</asp:ListItem>
                            <asp:ListItem Value="1">只显示折算成年假的纪录</asp:ListItem>
                            <asp:ListItem Value="2">只显示折算成津贴的纪录</asp:ListItem>
                        </asp:RadioButtonList></td>
                    <td colspan="2" rowspan="5">
                    </td>
                </tr>
                <tr>
                </tr>
                <tr>
                </tr>
                <tr>
                    <td colspan="3" style="height: 22px">
                        <asp:Panel ID="Panel1" runat="server" Height="29px" Width="484px">
                            请选择要查看的部门：<asp:DropDownList ID="cmbDeptList" runat="server" Width="148px" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged">
                            </asp:DropDownList>
                        </asp:Panel>
                        <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" /></td>
                </tr>
                <tr>
                    <td colspan="3" rowspan="2">
                        <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                            GridLines="Vertical" Width="513px" OnRowCommand="grdResult_RowCommand">
                            <FooterStyle BackColor="#CCCC99" />
                            <Columns>
                                <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                                <asp:BoundField HeaderText="加班次数" DataField="OvertimeCount" />
                                <asp:BoundField HeaderText="总小时数" DataField="TotalHours" />
                                <asp:ButtonField HeaderText="详细情况" Text="进入..." CommandName="Detail" />
                            </Columns>
                            <RowStyle BackColor="#F7F7DE" />
                            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
        </div>
    
    </div>
        <asp:Label ID="Label1" runat="server" Text="对不起，该网页属经理专用，请访问其他网页！" Visible="False"
            Width="358px"></asp:Label>
</asp:Content>